package org.yonggan.dmp.conf

import com.typesafe.config.{Config, ConfigFactory}

/**
  * 配置文件管理
  */
object ConfigManager {

  //加载配置文件
  private lazy val load: Config = ConfigFactory.load()

  /*------------------ etl 数据预处理  ------------------------*/
  //etl 文件输入\输出
  val ETL_INPUT = load.getString(Constant.ETL_INPUT_FILE)
  val PARQUET_OUT = load.getString(Constant.ETL_OUTPUT_FILE)
  val ETL_SPLILT_SYMBOL = load.getString(Constant.ETL_SPLILT_SYMBOL)

  /*---------------- appname数组字典 --------------------*/

  val APP_DICT_FILE_PATH =load.getString(Constant.APP_DICT_FILE_PATH)


  /*------------Redis常量--------------*/
  val REDIS_HOST = load.getString(Constant.REDIS_HOST)
  val REDIS_PORT= load.getInt(Constant.REDIS_PORT)


  /*----------------  用户停用词 -----------------*/
  val USER_STOP_WORD = load.getString(Constant.USER_STOP_WORD)

}
